/*     */ package com.yizhilu.os.image.controller;
/*     */
/*     */ import com.google.gson.Gson;
/*     */ import com.google.gson.GsonBuilder;
/*     */ import com.google.gson.JsonArray;
/*     */ import com.google.gson.JsonElement;
/*     */ import com.google.gson.JsonObject;
/*     */ import com.google.gson.JsonParser;
/*     */ import com.google.gson.reflect.TypeToken;
/*     */ import com.yizhilu.os.common.util.MyCORSFilter;
import com.yizhilu.os.core.service.cache.MemCache;
/*     */ import com.yizhilu.os.core.util.PropertyUtil;
/*     */ import com.yizhilu.os.image.util.DocConverter;
/*     */ import com.yizhilu.os.image.util.FileDownloadUtil;
/*     */ import com.yizhilu.os.image.util.FileUtil;
/*     */ import com.yizhilu.os.image.util.HttpUtils;
/*     */ import com.yizhilu.os.image.util.PDFUtils;
/*     */ import java.io.File;
/*     */ import java.io.PrintStream;
/*     */ import java.util.HashMap;
/*     */ import java.util.Map;
/*     */ import java.util.regex.Matcher;
/*     */ import java.util.regex.Pattern;
/*     */ import javax.servlet.http.HttpServletRequest;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
/*     */ import org.springframework.web.bind.annotation.RequestMapping;
/*     */ import org.springframework.web.bind.annotation.RequestParam;
/*     */ import org.springframework.web.bind.annotation.ResponseBody;
/*     */ import org.springframework.web.multipart.MultipartFile;
/*     */ import org.springframework.web.multipart.MultipartHttpServletRequest;
/*     */
/*     */ @Controller
/*     */ public class UploadImageContoller
/*     */ {
/*  47 */   public static int CUS_PHOTO_WIDTH = 150;
/*  48 */   public static int CUS_PHOTO_HEIGHT = 150;
/*     */
/*  51 */   public static PropertyUtil propertyUtil = PropertyUtil.getInstance("project");
/*     */
/*  53 */   private static Logger logger = LoggerFactory.getLogger(UploadImageContoller.class);
/*     */
/*  55 */   public static Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create();
/*  56 */   public static JsonParser jsonParser = new JsonParser();
/*  57 */   private MemCache memCache = MemCache.getInstance();
/*     */
/*     */   @RequestMapping(value={"/imgk4"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
/*     */   public String img(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/*  69 */       String referer = request.getHeader("referer");
/*  70 */       Pattern p = Pattern.compile("([a-z]*:(//[^/?#]+)?)?", 2);
/*  71 */       Matcher mathcer = p.matcher(referer);
/*  72 */       logger.info("imgk4 referer:" + referer);
/*  73 */       if (mathcer.find()) {
/*  74 */         String callBackPath = mathcer.group();
/*  75 */         MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/*  76 */         MultipartFile imgFile = multipartRequest.getFile("imgFile");
/*  77 */         String[] paths = FileUtil.getSavePathByRequest(request);
/*     */
/*  79 */         JsonObject json = FileUtil.saveImage(imgFile, paths);
/*     */
/*  82 */         json.addProperty("url", propertyUtil.getProperty("import.root") + json.get("url").getAsString());
/*     */
/*  84 */         String url = "redirect:" + callBackPath + "/kindeditor/plugins/image/redirect.html?s=" + json.toString() + "#" + json.toString();
/*  85 */         logger.info("imgk4 ok");
/*  86 */         return url;
/*     */       }
/*  88 */       logger.info("imgk4 referer not find");
/*     */     }
/*     */     catch (Exception e) {
/*  91 */       logger.error("imgk4 error", e);
/*     */     }
/*  93 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping(value={"/gok4"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
/*     */   public String go(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 107 */       response.setHeader("Access-Control-Allow-Origin", "*");
/* 108 */       String referer = request.getHeader("referer");
/* 109 */       Pattern p = Pattern.compile("([a-z]*:(//[^/?#]+)?)?", 2);
/* 110 */       Matcher mathcer = p.matcher(referer);
/* 111 */       if (mathcer.find()) {
/* 112 */         String callBackPath = mathcer.group();
/* 113 */         MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 114 */         MultipartFile imgFile = multipartRequest.getFile("fileupload");
/* 115 */         String[] paths = FileUtil.getSavePathByRequest(request);
/* 116 */         JsonObject json = FileUtil.saveImage(imgFile, paths);
/*     */
/* 118 */         String url = "redirect:" + callBackPath + "/kindeditor/plugins/image/redirect.html?s=" + json.toString() + "#" + json.toString();
/* 119 */         logger.info("++++gok4 return:" + url);
/* 120 */         return url;
/*     */       }
/*     */     } catch (Exception e) {
/* 123 */       logger.error("gok4 error", e);
/*     */     }
/* 125 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/imgk3"})
/*     */   @ResponseBody
/*     */   public String imgk3(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 140 */       String referer = request.getHeader("referer");
/* 141 */       Pattern p = Pattern.compile("([a-z]*:(//[^/?#]+)?)?", 2);
/* 142 */       Matcher mathcer = p.matcher(referer);
/* 143 */       if (mathcer.find()) {
/* 144 */         StringBuffer buffer = new StringBuffer();
/* 145 */         String callBackPath = mathcer.group();
/* 146 */         MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 147 */         MultipartFile imgFile = multipartRequest.getFile("imgFile");
/* 148 */         String[] paths = FileUtil.getSavePathByRequest(request);
/* 149 */         JsonObject json = FileUtil.saveImage(imgFile, paths);
/*     */
/* 151 */         json.addProperty("url", propertyUtil.getProperty("import.root") + json.get("url").getAsString());
/* 152 */         if (!"0".equals(json.get("error").toString())) {
/* 153 */           buffer.append("<html><head><title>Insert Image</title><meta http-equiv='content-type' content='text/html; charset=utf-8'/></head><body>");
/* 154 */           buffer.append("<script type='text/javascript'>");
/* 155 */           buffer.append("alert('").append(json.get("message")).append("!')");
/* 156 */           buffer.append("</script>");
/* 157 */           buffer.append("</body></html>");
/*     */         }
/*     */         else {
/* 160 */           buffer.append("<html><head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<title>PIC UPLOAD</title>\n<script type=\"text/javascript\">\n    var upload_callback = function(){\n        var iframe_proxy = document.createElement('iframe');\n        iframe_proxy.style.display = 'none';\n        iframe_proxy.src = '" + callBackPath + "/kindeditor/plugins/image/call_back.html#'+encodeURIComponent('" + json + "');\n" + "        document.body.appendChild(iframe_proxy);\n" + "    };\n" + "</script>\n" + "</head>\n" + "<body onload=\"upload_callback();\">\n" + "\n" + "</body></html>");
/*     */         }
/*     */
/* 166 */         return buffer.toString();
/*     */       }
/* 168 */       logger.info("imgk3 ok");
/*     */     } catch (Exception e) {
/* 170 */       logger.error("imgk3 error", e);
/*     */     }
/* 172 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping(value={"/face"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
/*     */   @ResponseBody
/*     */   public String face(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 187 */       String referer = request.getHeader("referer");
/* 188 */       referer = request.getHeader("Referer");
/* 189 */       Pattern p = Pattern.compile("([a-z]*:(//[^/?#]+)?)?", 2);
/* 190 */       Matcher mathcer = p.matcher(referer);
/*     */
/* 192 */       if (mathcer.find()) {
/* 193 */         String callBackPath = mathcer.group();
/* 194 */         MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 195 */         MultipartFile imgFile = multipartRequest.getFile("fileupload");
/* 196 */         String[] paths = FileUtil.getTempSavePathByRequest(request);
/* 197 */         JsonObject json = FileUtil.saveImage(imgFile, paths);
/*     */
/* 199 */         String url = "redirect:" + callBackPath + "/kindeditor/plugins/image/redirect.html?s=" + json.get("url").getAsString() + "#" + json.get("url").getAsString();
/* 200 */         logger.info("++++upload img return:" + url);
/* 201 */         return json.get("url").getAsString();
/*     */       }
/*     */     } catch (Exception e) {
/* 204 */       logger.error("face error", e);
/*     */     }
/* 206 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/saveface"})
/*     */   @ResponseBody
/*     */   public String saveface(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 222 */       String referer = request.getHeader("referer");
/* 223 */       System.out.println("referer:" + referer);
/* 224 */       Pattern p = Pattern.compile("([a-z]*:(//[^/?#]+)?)?", 2);
/* 225 */       Matcher mathcer = p.matcher(referer);
/*     */
/* 227 */       if (mathcer.find()) {
/* 228 */         String photoPath = request.getParameter("photoPath");
/* 229 */         int imageWidth = Integer.parseInt(request.getParameter("txt_width"));
/* 230 */         int imageHeight = Integer.parseInt(request.getParameter("txt_height"));
/* 231 */         int cutTop = Integer.parseInt(request.getParameter("txt_top"));
/* 232 */         int cutLeft = Integer.parseInt(request.getParameter("txt_left"));
/*     */
/* 234 */         int dropWidth = 0;
/* 235 */         int dropHeight = 0;
/* 236 */         if ((org.apache.commons.lang.StringUtils.isNotEmpty(request.getParameter("txt_DropWidth"))) && (org.apache.commons.lang.StringUtils.isNotEmpty(request.getParameter("txt_DropHeight"))))
/*     */         {
/* 238 */           dropWidth = Integer.parseInt(request.getParameter("txt_DropWidth"));
/* 239 */           dropHeight = Integer.parseInt(request.getParameter("txt_DropHeight"));
/*     */         }
/*     */         else {
/* 242 */           dropWidth = CUS_PHOTO_WIDTH;
/* 243 */           dropHeight = CUS_PHOTO_HEIGHT;
/*     */         }
/* 245 */         JsonObject json = FileUtil.saveCutImage(photoPath, imageWidth, imageHeight, cutLeft, cutTop, dropWidth, dropHeight);
/*     */
/* 247 */         json.addProperty("src", json.get("url").getAsString());
/* 248 */         json.addProperty("status", "1");
/* 249 */         String callname = request.getParameter("callback");
/* 250 */         logger.info(callname + "(" + json.toString() + ")");
/* 251 */         return callname + "(" + json.toString() + ")";
/*     */       }
/*     */     }
/*     */     catch (Exception e) {
/* 255 */       logger.error("saveface error", e);
/*     */     }
/* 257 */     return null;
/*     */   }
      @RequestMapping(value={"/uploadSinglePic"}, method={org.springframework.web.bind.annotation.RequestMethod.OPTIONS})
      public void uploadSinglePic(HttpServletRequest request, HttpServletResponse response) {
         MyCORSFilter.dealUploadCors(request,response);
      }
    @RequestMapping(value = {"/uploadSinglePic"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
    @ResponseBody
    public Map<String,Object> uploadSinglePic(HttpServletRequest request, HttpServletResponse response, MultipartFile imageFile) {
        Map<String,Object> result = new HashMap<>();
        try {
              uploadSinglePic(request,response);
              MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
              String[] paths = FileUtil.getSavePathByRequest(request);
              JsonObject json = FileUtil.saveImage(imageFile, paths);
              String path = json.get("url").getAsString();
            result.put("status",1);
              result.put("path",path);
              return result;
        } catch (Exception e) {
            result.put("status",0);
            result.put("msg","服务器异常！");
             logger.error("goswf error", e);
        }
        return result;
    }
/*     */   @RequestMapping({"/goswf"})
/*     */   @ResponseBody
/*     */   public String goswf(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 272 */       MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 273 */       MultipartFile imgFile = multipartRequest.getFile("fileupload");
/* 274 */       String[] paths = FileUtil.getSavePathByRequest(request);
/* 275 */       JsonObject json = FileUtil.saveImage(imgFile, paths);
/* 276 */       logger.info("++++upload img return:" + json.get("url").getAsString());
/*     */
/* 279 */       return json.get("url").getAsString();
/*     */     } catch (Exception e) {
/* 281 */       logger.error("goswf error", e);
/*     */     }
/* 283 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/goswfTB"})
/*     */   @ResponseBody
/*     */   public String goswfTB(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 296 */       String width = request.getParameter("width");
/* 297 */       String height = request.getParameter("height");
/* 298 */       if (com.yizhilu.os.core.util.StringUtils.isEmpty(width));
/* 301 */       MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 302 */       MultipartFile imgFile = multipartRequest.getFile("fileupload");
/* 303 */       String[] paths = FileUtil.getSavePathByRequest(request);
/* 304 */       JsonObject json = FileUtil.saveImage(imgFile, paths);
/* 305 */       logger.info("++++upload img return:" + json.get("url").getAsString());
/*     */
/* 307 */       String picPath = json.get("url").getAsString();
/* 308 */       return json.get("url").getAsString() + "," + PDFUtils.zoomImage(picPath, Integer.valueOf(width).intValue(), Integer.valueOf(height).intValue());
/*     */     } catch (Exception e) {
/* 310 */       logger.error("goswfTB error", e);
/*     */     }
/* 312 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/del"})
/*     */   @ResponseBody
/*     */   public Map<String, Object> del(HttpServletRequest request, HttpServletResponse response, @RequestParam("files") String files)
/*     */   {
/*     */     try
/*     */     {
/* 329 */       Map map = new HashMap();
/* 330 */       JsonArray jsonObject = jsonParser.parse(files).getAsJsonArray();
/* 331 */       logger.info("del file:" + jsonObject.toString());
/* 332 */       String types = request.getParameter("types");
/* 333 */       for (int i = 0; i < jsonObject.size(); i++) {
/* 334 */         if ((types != null) && (types.equals("swf")))
/* 335 */           map.put(i + "", Boolean.valueOf(FileUtil.deleteSwfImage(jsonObject.get(i).getAsString())));
/*     */         else {
/* 337 */           map.put(i + "", Boolean.valueOf(FileUtil.deleteImageFile(jsonObject.get(i).getAsString())));
/*     */         }
/*     */       }
/* 340 */       return map;
/*     */     } catch (Exception e) {
/* 342 */       logger.error("del error", e);
/*     */     }
/* 344 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/netfile"})
/*     */   @ResponseBody
/*     */   public String savenetfile(String url, HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 359 */       String[] paths = FileUtil.getSavePathByRequest(request);
/* 360 */       JsonObject json = FileUtil.saveFile(url, paths[0]);
/* 361 */       logger.info("++++netfile img return:" + json.get("url").getAsString());
/* 362 */       return json.get("url").getAsString();
/*     */     } catch (Exception e) {
/* 364 */       logger.error("savenetfile error", e);
/*     */     }
/* 366 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/file"})
/*     */   @ResponseBody
/*     */   public String file(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 380 */       MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 381 */       MultipartFile imgFile = multipartRequest.getFile("fileupload");
/* 382 */       String[] paths = FileUtil.getSavePathByRequest(request);
/* 383 */       JsonObject json = FileUtil.saveCommonFile(imgFile, paths);
/* 384 */       logger.info("++++upload img return:" + json.get("url").getAsString());
/* 385 */       return json.get("url").getAsString();
/*     */     } catch (Exception e) {
/* 387 */       logger.error("goswf error", e);
/*     */     }
/* 389 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/pdf2swf"})
/*     */   @ResponseBody
/*     */   public String pdf2swf(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/*     */     try
/*     */     {
/* 404 */       MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 405 */       MultipartFile imgFile = multipartRequest.getFile("fileupload");
/* 406 */       String[] paths = FileUtil.getSavePathByRequest(request);
/* 407 */       JsonObject json = FileUtil.saveCommonFile(imgFile, paths);
/* 408 */       String pdffilename = FileUtil.rootpath + json.get("url").getAsString();
/* 409 */       pdffilename = pdffilename.replaceAll("//", "/");
/* 410 */       logger.info("pdffilename:" + pdffilename);
/* 411 */       String swfFileName = pdffilename.substring(0, pdffilename.lastIndexOf(".")) + ".swf";
/* 412 */       String res = DocConverter.pdf2swf(pdffilename, swfFileName);
/* 413 */       if (!"success".equalsIgnoreCase(res)) {
/* 414 */         logger.info("res:" + res);
/* 415 */         return res;
/*     */       }
/*     */
/* 418 */       return swfFileName.replace(FileUtil.rootpath, "/");
/*     */     } catch (Exception e) {
/* 420 */       logger.error("pdf2swf error", e);
/*     */     }
/* 422 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/pdf2swfandpng"})
/*     */   @ResponseBody
/*     */   public String pdf2swfandpng(HttpServletRequest request, HttpServletResponse response)
/*     */   {
/* 431 */     Map map = new HashMap();
/*     */     try {
/* 433 */       String width = request.getParameter("width");
/* 434 */       String height = request.getParameter("height");
/*     */
/* 436 */       MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
/* 437 */       MultipartFile imgFile = multipartRequest.getFile("fileupload");
/* 438 */       String[] paths = FileUtil.getSavePathByRequest(request);
/* 439 */       JsonObject json = FileUtil.saveCommonFile(imgFile, paths);
/* 440 */       String pdffilename = FileUtil.rootpath + json.get("url").getAsString();
/* 441 */       pdffilename = pdffilename.replaceAll("//", "/");
/* 442 */       logger.info("pdffilename:" + pdffilename);
/* 443 */       String swfFileName = pdffilename.substring(0, pdffilename.lastIndexOf(".")) + ".swf";
/* 444 */       String res = DocConverter.pdf2swf(pdffilename, swfFileName);
/* 445 */       if (!"success".equalsIgnoreCase(res)) {
/* 446 */         logger.info("res:" + res);
/* 447 */         return res;
/*     */       }
/* 449 */       map.put("swfUrl", swfFileName.replace(FileUtil.rootpath, "/"));
/*     */
/* 451 */       Map pdfToPngmap = PDFUtils.pdfToPng(pdffilename, width, height);
/*     */
/* 453 */       map.put("pngUrlStrs", pdfToPngmap.get("pngUrlStrs"));
/* 454 */       map.put("pngUrlStrsTB", pdfToPngmap.get("pngUrlStrsTB"));
/*     */
/* 456 */       return gson.toJson(map);
/*     */     }
/*     */     catch (Exception e) {
/* 459 */       logger.error("pdf2swfandpng error", e);
/*     */     }
/* 461 */     return null;
/*     */   }
/*     */
/*     */   @RequestMapping({"/downloadFile"})
/*     */   @ResponseBody
/*     */   public Object downloadZipFile(HttpServletRequest request, HttpServletResponse response, @RequestParam(value="fileName", required=false) String fileName, @RequestParam(value="userId", required=false) Long userId, @RequestParam(value="dataId", required=false) Long dataId, @RequestParam(value="downType", required=false) String downType)
/*     */   {
/* 483 */     String callback = request.getParameter("callback");
/* 484 */     Map resultMap = null;
/*     */     try {
/* 486 */       System.out.println("--------------FileUtil.webPath:" + FileUtil.webPath);
/* 487 */       String result = null;
/* 488 */       Map param = new HashMap();
/* 489 */       param.put("userId", String.valueOf(userId));
/*     */
/* 491 */       if ("library".equals(downType)) {
/* 492 */         param.put("libraryId", String.valueOf(dataId));
/* 493 */         result = HttpUtils.sendHttp(FileUtil.webPath + "/library/checkLibraryDonw", param);
/* 494 */       } else if ("lectureNotes".equals(downType))
/*     */       {
/* 496 */         param.put("kpointId", String.valueOf(dataId));
/* 497 */         result = HttpUtils.sendHttp(FileUtil.webPath + "/api/checkKpointHandout", param);
/*     */       }
/*     */
/* 500 */       resultMap = (Map)gson.fromJson(result, new TypeToken() {  } .getType());
/* 501 */       if (((Boolean)resultMap.get("success")).booleanValue() == true) {
/* 502 */         return FileDownloadUtil.donwFile(request, userId, dataId, fileName, callback, resultMap, downType);
/*     */       }
/* 504 */       logger.info("downloadZipFile()--" + resultMap.get("message"));
/* 505 */       return callback + "(" + gson.toJson(resultMap) + ")";
/*     */     }
/*     */     catch (Exception e) {
/* 508 */       logger.error("downloadZipFile()--error", e);
/* 509 */       resultMap.put("success", Boolean.valueOf(false));
/* 510 */       resultMap.put("message", "系统错误，下载失败");
/* 511 */       resultMap.put("entity", null);
/* 512 */     }return callback + "(" + gson.toJson(resultMap) + ")";
/*     */   }
/*     */
/*     */   @RequestMapping({"/executeDownload"})
/*     */   public void executeDownload(HttpServletResponse response, HttpServletRequest request, @RequestParam(value="key", required=true) String key, @RequestParam(value="userId", required=true) Long userId, @RequestParam(value="dataId", required=true) Long dataId, @RequestParam(value="donwType", required=true) String donwType)
/*     */   {
/*     */     try
/*     */     {
/* 534 */       File zipFile = (File)this.memCache.get(key);
/* 535 */       if (zipFile != null) {
/* 536 */         System.out.println("4444444444444444444444-----");
/* 537 */         if (donwType.equals("library")) {
/* 538 */           Map param = new HashMap();
/* 539 */           param.put("userId", String.valueOf(userId));
/* 540 */           param.put("libraryId", String.valueOf(dataId));
/* 541 */           System.out.println("------------------FileUtil.webPath:" + FileUtil.webPath);
/* 542 */           String result = HttpUtils.sendHttp(FileUtil.webPath + "/donwloadPoints", param);
/* 543 */           Map resultMap = (Map)gson.fromJson(result, new TypeToken() {  } .getType());
/* 544 */           System.out.println("555555555555555555555555-----");
/* 545 */           if (((Boolean)resultMap.get("success")).booleanValue() == true) {
/* 546 */             System.out.println("666666666666666666666666666666666666-----");
/* 547 */             FileDownloadUtil.downloadFile(request, response, zipFile);
/*     */           }
/* 549 */           System.out.println("777777777777777-----");
/* 550 */         } else if (donwType.equals("lectureNotes")) {
/* 551 */           FileDownloadUtil.downloadFile(request, response, zipFile);
/*     */         }
/*     */       }
/* 554 */       System.out.println("88888888888888-----");
/* 555 */       this.memCache.remove(key);
/*     */     } catch (Exception e) {
/* 557 */       logger.error("executeDownload()---error", e);
/*     */     }
/*     */   }
/*     */ }

/* Location:           F:\work\公司\质量学院\ducumentQIN\项目更新\web\20171122\
 * Qualified Name:     com.yizhilu.os.image.controller.UploadImageContoller
 * JD-Core Version:    0.6.1
 */